all:bindingTest queueTest messageTest vhostTest routeTest consumerTest ChannelTest
bindingTest:bindingTest.cpp
	g++ -std=c++11 $^ -o $@ -lgtest -lsqlite3
queueTest:queueTest.cpp
	g++ -std=c++11 $^ -o $@ -lgtest -lsqlite3
messageTest:messageTest.cpp ../mqcommon/mq_msg.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lsqlite3 -lprotobuf
vhostTest:vhostTest.cpp ../mqcommon/mq_msg.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lsqlite3 -lprotobuf
routeTest:routeTest.cpp
	g++ -g -std=c++11 $^ -o $@ -lgtest
consumerTest:consumerTest.cpp
	g++ -g -std=c++11 $^ -o $@ -lgtest
ChannelTest:ChannelTest.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lprotobuf -I../mqthird/include  -lpthread -lsqlite3
connectionTest:connectionTest.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lprotobuf -I../mqthird/include  -lpthread -lsqlite3
.PHONY:clean
clean:
	rm -rf connectionTest